<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use \Illuminate\Support\Facades\Route;
use \Illuminate\Routing\Router;
//Route::get('/', function () {
//    return view('welcome');
//});

Route::get('test','Web\TestController@index');
Route::get('my_test','Web\IndexController@test');

Route::get('/','Web\IndexController@index');
Route::get('/login','Web\IndexController@loginView')->name('login');


Route::group(['prefix'=>'admin'],function (Router $router){
    $router->get('/','Admin\IndexController@index');
});
